package JAVASE524;

import java.util.ArrayList;

public class ArraylistTEST {
    public static void main(String[] args) {
        ArrayList<String> list=new ArrayList<>();
        System.out.println(list);
        boolean result=list.add("asd");
        list.add("bbb");
        list.add("ccc");
        System.out.println(result);
        System.out.println(list);
        list.remove("asd");
        System.out.println(list);
        String str=list.set(0,"ddd");
        System.out.println(str);
        System.out.println(list);
        for (int i = 0; i < list.size(); i++) {
            System.out.println(list.get(i));
            list.get(i);
        }
    }
}
